package com.ruoyi.web.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户分红收益记录对象 user_profit_record
 * 
 * @author ruoyi
 * @date 2023-01-05
 */
public class UserProfitRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 来源用户 */
    @Excel(name = "来源用户")
    private Long fromUser;

    /** 受益用户 */
    @Excel(name = "受益用户")
    private Long toUser;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal quantity;

    /** 公链 */
    @Excel(name = "公链")
    private String publicChain;

    /** 币种 */
    @Excel(name = "币种")
    private String currency;

    /** 充值类型（系统字典：user_fund_recharge_type） */
    @Excel(name = "充值类型", readConverterExp = "系=统字典：user_fund_recharge_type")
    private String type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFromUser(Long fromUser) 
    {
        this.fromUser = fromUser;
    }

    public Long getFromUser() 
    {
        return fromUser;
    }
    public void setToUser(Long toUser) 
    {
        this.toUser = toUser;
    }

    public Long getToUser() 
    {
        return toUser;
    }
    public void setQuantity(BigDecimal quantity) 
    {
        this.quantity = quantity;
    }

    public BigDecimal getQuantity() 
    {
        return quantity;
    }
    public void setPublicChain(String publicChain) 
    {
        this.publicChain = publicChain;
    }

    public String getPublicChain() 
    {
        return publicChain;
    }
    public void setCurrency(String currency) 
    {
        this.currency = currency;
    }

    public String getCurrency() 
    {
        return currency;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fromUser", getFromUser())
            .append("toUser", getToUser())
            .append("quantity", getQuantity())
            .append("publicChain", getPublicChain())
            .append("currency", getCurrency())
            .append("type", getType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
